package com.example.dao;

import com.example.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    User findById(@Param("userid") Integer userid);

    List<User> findAll();

    int insert(User user);

    int update(User user);

    int delete(@Param("userid") Integer userid);

    User findByNameAndPassword(String username, String password);

    User findById(@Param("userid") int userid);

    User findByUsername(String username);
}
